<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>客户管理系统</title>
		<link rel="stylesheet" type="text/css" href="../../layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/nav_icon.css"/>
		<style type="text/css">
			body{
				overflow-y: hidden;
			}
			.layui-nav-tree{
				padding-top: 30px;
			}
		</style>
	</head>
	<body>
		<div class="layui-layout">
			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree" lay-filter="test">
						<li class="layui-nav-item"><a href="javascript:;" data-index="calendar.html" style="font-size: 18px;height: 60px;line-height: 60px;"><i class="iconfont icon-shijian"></i>日历</a></li>
						<li class="layui-nav-item"><a href="javascript:;" style="font-size: 18px;height: 60px;line-height: 60px;"></i>日志</a>
							<dl class="layui-nav-child">
								<dd><a href="javascript:;" data-index="findLog.html" style="font-size: 16px;height: 50px;line-height: 50px;"><i class="iconfont icon-zhangben"></i>日志</a></dd>
								<dd><a href="javascript:;" data-index="log.html" style="font-size: 16px;height: 50px;line-height: 50px;"><i class="iconfont icon-tianjia"></i>添加日志</a></dd>
							</dl>
						</li>
					</ul>
				</div>
			</div>
			<div class="layui-body" style="margin-left: -200px;">
				<!-- 内容主体区域 -->
				<div class="layui-body" id="LAY_app_body">
					<div class="layadmin-tabsbody-item layui-show" style="height: 100%;">
						<iframe src="calendar.html" frameborder="0" class="layadmin-iframe" style="width: 100%;height: 100%;"></iframe>
					</div>
				</div>
			</div>
		</div>

		<script src="../../js/jquery3.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script>
			//JavaScript代码区域
			layui.use('element', function() {
				var element = layui.element;
				$(".layui-side a").each(function(index, el) {
					// console.log(el)
					$(el).click(function() {
						// console.log( $(this).attr("data-index"))   
						$(".layui-body iframe").attr("src", $(this).attr("data-index"))
					})
				})
			});
		</script>
	</body>
</html>
